package main

import "fmt"

type Humaner interface {
	sayhi()
}

type Personer interface {
	Humaner
	sing(lrc string)
}

type Student struct {
	name string
	id   int
}

func (tmp *Student) sayhi() {
	fmt.Printf(" %% Student [%s, %d] sayhi \n ", tmp.name, tmp.id)
}

func (tmp *Student) sing(lrc string) {
	fmt.Println(" student 在唱着 : ", lrc)
}

func main() {
	var per Personer
	stu := &Student{"mike", 666}
	per = stu
	per.sayhi()
	per.sing("《凤凰传奇》")
}
